//
//  renwuViewController.m
//  OfferJob
//
//  Created by 河南动力无限科技有限公司 on 17/7/13.
//  Copyright © 2017年 郑州动力无限科技. All rights reserved.
//

#import "renwuViewController.h"

@interface renwuViewController ()
@property (nonatomic,strong)UIView *grayV;
@property (nonatomic,strong)NSMutableArray *Marryhuxing;


@end

@implementation renwuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIScrollView *bgView = [[UIScrollView alloc] initWithFrame:CGRectMake(0,0, SCREEN_WIDTH, 70*kAppScale)];
    bgView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:bgView];
    
    NSArray* arr=[NSArray arrayWithObjects:@"张兴",@"张蓝",@"张只能",@"张快乐", nil];
    for (int i=0; i<arr.count; i++) {
        UIButton *btn=[UIButton buttonWithType:0];
        btn.frame=CGRectMake(0, 44*kAppScale*i, SCREEN_WIDTH, 44*kAppScale);
//        [btn setFont:[UIFont systemFontOfSize:13*kAppScale]];
        [btn setTitleColor:[UIColor blackColor] forState:0];
        btn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
        btn.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
        btn.tag=i+1;
        
        [btn setTitle:arr[i][@"name"] forState:0];
//        [btn addTarget:self action:@selector(seleZongJia:) forControlEvents:1<<6];
        
        //        if (i==0) {
        //            [btn addSubview:[self getView:CGRectMake(0, 0, SCREEN_WIDTH, .5)]];
        //        }
        //        else
        //        {
        //            [btn addSubview:[self getView:CGRectMake(10*kAppScale, 0, SCREEN_WIDTH-20*kAppScale, .5)]];
        //        }
        //        if (i==arr.count-1) {
        //
        //            _mainSC.contentSize=CGSizeMake(0, btn.bottom);
        //        }
        [bgView addSubview:btn];
    }
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
